package com.eh.strategy.model;

import com.eh.strategy.behavior.impl.FlyWithWing;
import com.eh.strategy.behavior.impl.Quack;

/**
 * Created by David on 2016/4/22.
 */
public class MallardDuck extends Duck {
    public MallardDuck() {
        setFlyBehavior(new FlyWithWing());
        setQuackBehavior(new Quack());
    }

    @Override
    public void display() {
        System.out.println("...decoy display...");
    }
}
